<!--<?php
include_once PrintEot('left');
print <<<EOT
-->

<div class="nav3 mb10">
    <ul id="basictype" class="cc">
        <li class="current"><a href="$basename" hidefocus="true">房产缓存</a></li>
    </ul>
</div>
<h2 class="h1"><span class="fl mr5">缓存更新</span></h2>
<div class="admin_table mb10">
	<table cellspacing="0" cellpadding="0" width="100%">
		<tbody>
			<tr class="tr2">
				<td>缓存类型</td>
				<td>操作</td>
			</tr>
<!--
EOT;
foreach ($types as $key => $value) {
print <<<EOT
-->
			<tr class="tr1">
				<td class="td1">$value</td>
				<td class="td2"><a href="#" onclick="deleteByType('$key');return false;">[更新]</a></td>
			</tr>
<!--
EOT;
}print <<<EOT
-->
		</tbody>
	</table>
</div>
<div style="padding-left:170px"><span class="btn2"><span><button type="button" onclick="truncatePageCache();">更新所有缓存</button></span></span></div>

<script src="js/pw_ajax.js" language="JavaScript"></script>
<script src="js/global.js" language="JavaScript"></script>
<script language="javascript">
function truncatePageCache(){
	/*
	if (!confirm("确定要删除页面缓存吗？")){
		return false;
	}
	*/
	var url = "$ajax_basename";
	ajax.send(url,'action=truncate',ajax.get);
}
function deleteByType(type) {
	var url = "$ajax_basename";
	ajax.send(url,'action=dels&type='+type,ajax.get);
}
</script>

<!--
EOT;
include_once PrintEot('adminbottom');
?>-->